<!DOCTYPE html>
<html>

    <head>
        <meta charset="UTF-8">
        <title>{:COMPANY}</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="description" content="">
        <meta name="keywords" content="coco bootstrap template, coco admin, bootstrap,admin template, bootstrap admin,">
        <meta name="author" content="Huban Creative">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

        <!-- Base Css Files -->
        <link href="{:__BOOTSTRAP__}css/bootstrap.min.css" rel="stylesheet" />
        <link href="{:__CSS__}font-awesome/css/font-awesome.min.css" rel="stylesheet" />
        <link href="{:__CSS__}fontello/css/fontello.css" rel="stylesheet" />

        <!-- Extra CSS Libraries Start -->
        <link href="{:__CSS__}style.css" rel="stylesheet" type="text/css" />
        <!-- Extra CSS Libraries End -->

        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->

        <link rel="shortcut icon" href="{:__IMG__}Besiness/favicon.ico">
    </head>

    <body>
        <!-- Start content-->
        <div class="content">
            <div class="row">
                <div class="col-md-12">
                    <div class="widget">
                        <div class="widget-header transparent">
                            <h2><strong>医生列表</strong></h2>
                        </div>
                        <div class="data-table-toolbar table-size">
                            <form action="" method="post" >                           
                                <label class="table-select">医生名称：</label>
                                <input type="text" name="name" class="form-control" placeholder="医生名称" />
                                <input type="hidden" name="p" value="1" />
                                <label class="table-select">预约电话：</label>
                                <input type="text" name="mobile" class="form-control" placeholder="电话" />
                                <label class="table-select">预约时间：</label>
                                <input type="date" name="order_time" class="form-control" placeholder="日期" />
                                <button type="submit" class="table-select btn btn-success">查询</button>
                            </form>

                        </div>
                        <div class="table-responsive">
                            <table class="table table-hover table-striped">
                                <thead>
                                    <tr>
                                        <th>序号</th>
                                        <th>名字</th>
                                        <th>电话</th>
                                        <th>年龄</th>
                                        <th>性别</th>
                                        <th>饮食习惯</th>
                                        <th>地址</th>
                                        <th>预约医生</th>
                                        <th>预约时间</th>
                                        <th>状态</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                <foreach name="re" item="v">
                                    <tr class="oid_{$v.oid}">
                                        <td>{$v.oid}</td>
                                        <td>{$v.name}</td>
                                        <td>{$v.mobile}</td>
                                        <td>{$v.age}</td>
                                        <td>
                                    <if condition="$v['sex'] eq 1">
                                        女
                                        <else/>
                                        男
                                    </if>
                                    </td>
                                    <td>
                                    <if condition="$v['xiguan'] eq 1">
                                        素食较多
                                        <else/>
                                        肉食较多
                                    </if>    
                                    </td>
                                    <td>{$v.address}</td>
                                    <td>{$v.dname}</td>
                                    <td>{:date('Y-m-d',$v['order_time'])}</td>
                                    <td>
                                    <if condition="$v['status'] eq 1">
                                        <span class="label label-warning">已处理</span>
                                        <else/>
                                        <span class="label label-info">未处理</span>
                                    </if>
                                    </td>
                                    <td>
                                        <div class="btn-group btn-group-xs">
                                            <if condition="$v['status'] eq 0">
                                                <a href="{:U('Admin/Order/audit?status=1&oid='.$v['oid'])}"  tit="审核" class="btn btn-default"><i class="fa fa-check-circle"></i></a>
                                            </if>
                                        </div>
                                    </td>
                                    </tr>
                                </foreach>                                
                                </tbody>
                            </table>
                        </div>
                        <div class="my_page">{$page}</div>
                    </div>
                </div>
            </div
            <!-- Footer Start -->
            <div class="footer">Copyright &copy; {:COMPANY}</div>
            <!-- Footer End -->
        </div>

        <script type="text/javascript" src="{:__LIBS__}jquery/jquery-1.11.1.min.js"></script>
        <script type="text/javascript" src="{:__LIBS__}layer/layer.js"></script>
        <script type="text/javascript" src="{:__JS__}common.js"></script>
        <script>
            $(".fa-check-circle").bind('click', function () {
                if (confirm("你确认了吗？")) {
                    return true;
                } else {
                    return false;
                }
            })
        </script>
    </body>

</html>